<input type="hidden" id="pageSize" name="numPerPage" value="${page.numPerPage}"/>
[#if totalPages > 1]
<nav>
    <ul class="pagination">
        [#if isFirst]
            <li class="disabled"><a href="#"   class="firstPage">首页</a></li>
        [#else]
            <li><a class="firstPage" href="javascript: $.pageSkip(${firstPageNumber});" >首页</a></li>
        [/#if]
        [#if hasPrevious]
            <li><a class="previousPage" href="javascript: $.pageSkip(${previousPageNumber});" >上一页</a></li>
        [#else]
            <li class="disabled"><a class="previousPage" href="#" >上一页</a></li>
        [/#if]
        [#list segment as segmentPageNumber]
            [#if segmentPageNumber_index == 0 && segmentPageNumber > firstPageNumber + 1]
                <li class="disabled"><a class="pageBreak" href="#" >...</a></li>
            [/#if]
            [#if segmentPageNumber != pageNumber]
                <li><a  href="javascript: $.pageSkip(${segmentPageNumber});" >${segmentPageNumber}</a></li>
            [#else]
                <li class="active"><a  class="currentPage" href="#">${segmentPageNumber}</a></li>
            [/#if]
            [#if !segmentPageNumber_has_next && segmentPageNumber < lastPageNumber - 1]
                <li class="disabled"><a class="pageBreak" href="#" >...</a></li>
            [/#if]
        [/#list]
        [#if hasNext]
            <li><a class="nextPage"  href="javascript: $.pageSkip(${nextPageNumber});" >下一页</a></li>
        [#else]
            <li class="disabled"><a class="nextPage" href="#">下一页</a></li>
        [/#if]
        [#if isLast]
            <li class="disabled"><a class="lastPage" href="#" >尾页</a></li>
        [#else]
            <li><a class="lastPage"  href="javascript: $.pageSkip(${lastPageNumber});" >尾页</a></li>
        [/#if]
    </ul>
</nav>
[/#if]
